<nav class="breadcrumb" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span class="c-999 en">&gt;</span>
    <span class="">帮扶记录</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">新增帮扶记录</span>
    <div class="f-r">
        <input class="btn btn-default size-S radius f-r mr-30 mt-5 mt-10" type="button" id="goToBack" value="返回">
    </div>
</nav>
<div style="" id="addPopup">
    <div class="Hui-article mt-10" id="add">
        <form class="form form-horizontal responsive twinningAddForm  ml-1p" id="editForm" novalidate="novalidate"></form>
    </div> 
    <!-- localHbs -->
    <script id="editList" type="text/x-handlebars-template">
        <div class="box clearfix">
            <input type="hidden"  id="useId"/><!--帮扶记录id-->
            <input type="hidden" name="poorFamily.id" id="poorFamilyId"/><!--贫困户id-->
            <div class="row cl inline-block row2 w-550">
                <label for="ipt2" class="form-label col-1">时间:</label>
                <input type="text" class="input-text radius pointer w-300"  placeholder="请选择年度" \{{#if detail}}disabled="disabled"\{{/if}} name="addTime" id="year" value="\{{addTime}}" required readonly/>
                <input  type="hidden" name="" value="\{{addTime}}"/>
            </div>

            <div class="row cl">
                <label class="form-label col-1">目的:</label>
                <div class="formControls col-2">
                    <textarea class="input-text" \{{#if detail}}disabled="disabled" \{{/if}} name="target" autocomplete="off" maxlength="120" value="\{{target}}" placeholder="请输入帮扶目的(最多120个字)..." style="min-height: 100px">\{{target}}</textarea>
                </div>
            </div>

            <div class="row cl">
                <label class="form-label col-1">描述:</label>
                <div class="formControls col-2">
                    <textarea class="input-text" \{{#if detail}}disabled="disabled" \{{/if}} name="content" autocomplete="off" maxlength="120" value="\{{content}}" placeholder="请输入帮扶描述(最多120个字)..." style="min-height: 100px">\{{content}}</textarea>
                </div>
            </div>

            <div class="row cl">
                <label class="form-label col-1">备注:</label>
                <div class="formControls col-2"> 
                    <textarea class="input-text" \{{#if detail}}disabled="disabled" \{{/if}} name="remarks" autocomplete="off" maxlength="120" value="\{{remarks}}" placeholder="请输入帮扶备注(最多120个字)..." style="min-height: 100px">\{{remarks}}</textarea>
                </div>
            </div>

            <div class="h_url_list"  >
                <input name="accessoryUrl" id="accessoryUrl" type="hidden" />
                \{{#mccmsShowIfEqual str ''}}
                \{{else}}
                \{{#mccmsShowIfEqual detail '0'}}
                \{{#each str}}
                <div class="row cl inline-block row2 url-div w-550">
                    <label for="ipt2 " class="w-label">附件:&nbsp;</label>
                    <input type="text"  class="input-text w-300 url" disabled="disabled" value="\{{this}}" />
                    <a for="ipt2 " class="del_btn" >删除</a>
                    <a class="upload_btn" style="margin-left: 10px;">下载</a>
                </div>
                \{{/each}}
                \{{else}}
                \{{#each str}}
                <div class="row cl inline-block row2 url-div">
                    <label for="ipt2 " class="w-label">附件:&nbsp;&nbsp;</label>
                    <input type="text"  class="input-text w-65p url" disabled="disabled" value="\{{this}}" />
                    {{!-- <a for="ipt2 " class="del_btn" >删除</a> --}}
                </div>
                \{{/each}}
                \{{/mccmsShowIfEqual}}
                \{{/mccmsShowIfEqual}}
            </div>  
            <input class="btn btn-secondary" name="file" id="file" type="file" value="" style="display: none;">
            
            <div style="text-align: center;" class="pt-30" \{{#if detail}}hidden\{{/if}}>
                <label for="file" class="btn btn-secondary size-L import_btn" style="width: auto;">上传附件</label>
                <button type="button" class="btn btn-secondary size-L sub_btn">保 存</button>
            </div>
            
        </div>
    </script>
</div>
<script type="text/javascript">
    new visitingRecordEdit()
</script>